package cn.wolfcode.designpattern.strategy;

/**
 * @author Leon
 * @date 2021/2/28
 */
public class Client {

    public static void main(String[] args) {
        UserController controller = new UserController();
        controller.handleData("email@e.com", new EmailValid());

        controller.handleData(null, new NullValid());

        controller.handleData("https://www.wolfcode.cn", new UrlValid());
    }

}
